package com.hoshiicloud.mallshop.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("登录入仓对象")
public class StoreLoginParam implements Serializable {
    @ApiModelProperty(value = "用户名或者手机号", dataType="java.lang.String",example = "test")
    @NotBlank(message = "用户名/手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "密码", dataType="java.lang.String",example = "test")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "店铺id", dataType="java.lang.Long",example = "987879878787878",hidden = true)
    //@NotNull(message = "店铺id不能为空")
    private Long storeId;
}
